package com.my.main.service.enterprise.serviceImpl;

import com.my.main.base.mapper.BaseMapper;
import com.my.main.base.service.Impl.BaseServiceImpl;
import com.my.main.entity.enterprise.EnterpriseUserRelation;
import com.my.main.mapper.enterprise.EnterpriseUserRelationMapper;
import com.my.main.service.enterprise.EnterpriseUserRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class EnterpriseUserRelationServiceImpl extends BaseServiceImpl<EnterpriseUserRelation> implements EnterpriseUserRelationService {
    @Autowired
    private EnterpriseUserRelationMapper enterpriseUserRelationMapper;
    @Resource(name= "enterpriseUserRelationMapper")
    public void setBaseMapper(BaseMapper<EnterpriseUserRelation> enterpriseUserRelationMapper) {
        super.setBaseMapper(enterpriseUserRelationMapper);
    }

    @Override
    public List<String> queryByJoinUser(Map<String, Object> map) {
        return enterpriseUserRelationMapper.queryByJoinUser(map);
    }
}
